from rest_framework import serializers
from user import models


class RoleSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Role
        fields = '__all__'


class ResourceSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Resource
        fields = '__all__'


class Role_ResourceSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Role_Resource
        fields = '__all__'


class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.User
        fields = '__all__'


class JobInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.JobInfo
        fields = '__all__'


class ThirdLoginSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.ThirdLogin
        fields = '__all__'


class CitySerializer(serializers.ModelSerializer):
    class Meta:
        model = models.City
        fields = '__all__'


class ResumeSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Resume
        fields = '__all__'
